package com.VolunteerPlatform.Dao;

import com.VolunteerPlatform.Entity.AdminRoleInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by DoveXL on 2018/12/3.
 */
@Repository
public interface AdminRoleDao {

    public List<AdminRoleInfo> findByUserName(@Param("UserName") String UserName);
    public List<AdminRoleInfo> getUserRole(@Param("UserName") String UserName,@Param("AdminID") String AdminID,@Param("Page") int Page,@Param("PageList") int Pagelist);
    public int updateAdminRoleInfo(@Param("UserName") String UserName, @Param("AdminID") String AdminID);
    public int insertAdminRoleInfo(@Param("UserName") String UserName,@Param("AdminID") String AdminID);
}
